











 

<html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>QuickIO.NET - Win32SafeNativeMethods</title>
        <meta name="viewport" content="width=device-width">

		
			<link rel="stylesheet" type="text/css" href="../assets/css/style.css" />
			<script src="../assets/js/vendor.js"></script>
			<script src="../assets/js/frame.js"></script>
		

		<script>hljs.initHighlightingOnLoad();</script>

    </head>
    <body>        
        
		<!-- DropDowns -->
		<div id="dropdown-1" class="dropdown dropdown-tip">
			<ul class="dropdown-menu">
				
			</ul>
		</div>

		<div id="dropdown-2" class="dropdown dropdown-tip">
			<ul class="dropdown-menu">
				
			</ul>
		</div>

		<div id="dropdown-3" class="dropdown dropdown-tip">
			<ul class="dropdown-menu">
				

				

					<li><a href="#CopyFile2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> CopyFile(String fullNameSource, String fullNameTarget, Boolean failOnExists)</a></li>

				

					<li><a href="#CreateDirectory3"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> CreateDirectory(String fullName, IntPtr securityAttributes)</a></li>

				

					<li><a href="#CreateFile3"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> CreateFile(String fullName, FileAccess dwDesiredAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, FileAttributes dwFlagsAndAttributes, IntPtr hTemplateFile)</a></li>

				

					<li><a href="#DeleteFile7"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> DeleteFile(String fullName)</a></li>

				

					<li><a href="#FindClose"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> FindClose(Win32FindData win32FindData)</a></li>

				

					<li><a href="#FindClose2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> FindClose(SafeHandle findFile)</a></li>

				

					<li><a href="#FindFirstFile"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> FindFirstFile(String fullName, Win32FindData win32FindData)</a></li>

				

					<li><a href="#FindNextFile"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> FindNextFile(Win32FileHandle findFileHandle, Win32FindData findData)</a></li>

				

					<li><a href="#GetDiskFreeSpaceEx"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> GetDiskFreeSpaceEx(String fullName, UInt64& freeBytesAvailable, UInt64& totalNumberOfBytes, UInt64& totalNumberOfFreeBytes)</a></li>

				

					<li><a href="#GetFileAttributes"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> GetFileAttributes(String fullName)</a></li>

				

					<li><a href="#GetFileSizeEx"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> GetFileSizeEx(SafeHandle hFile, Int64& lpFileSize)</a></li>

				

					<li><a href="#LocalFree"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> LocalFree(IntPtr handle)</a></li>

				

					<li><a href="#MoveFile2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> MoveFile(String fullNameSource, String fullNameTarget)</a></li>

				

					<li><a href="#RemoveDirectory"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> RemoveDirectory(String fullName)</a></li>

				

					<li><a href="#SetAllFileTimes8"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetAllFileTimes(Win32FindData hFile, Int64& lpCreationTime, Int64& lpLastAccessTime, Int64& lpLastWriteTime)</a></li>

				

					<li><a href="#SetCreationFileTime"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetCreationFileTime(Win32FindData hFile, Int64& lpCreationTime, IntPtr lpLastAccessTime, IntPtr lpLastWriteTime)</a></li>

				

					<li><a href="#SetFileAttributes"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetFileAttributes(String fullName, UInt32 fileAttributes)</a></li>

				

					<li><a href="#SetLastAccessFileTime"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetLastAccessFileTime(Win32FindData hFile, IntPtr lpCreationTime, Int64& lpLastAccessTime, IntPtr lpLastWriteTime)</a></li>

				

					<li><a href="#SetLastWriteFileTime"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetLastWriteFileTime(Win32FindData hFile, IntPtr lpCreationTime, IntPtr lpLastAccessTime, Int64& lpLastWriteTime)</a></li>

				
			</ul>
		</div>

		<div id="dropdown-4" class="dropdown dropdown-tip">
			<ul class="dropdown-menu">
				
			</ul>
		</div>
		<!-- DropDowns Ende -->

	    <div class="ui-layout-north">
			<div class="toolbar">

				
					<a href="#" data-dropdown="#dropdown-3" class="button"><img src="../assets/images/icons/Method_public.png"/> Methods <span class="info">(19)</span> <i class="icon-caret-down"></i></a>
				

				<div class="right">
					<span class="toolbar-info"> Namespace: SchwabenCode.QuickIO.SafeNative</span>
					<a href="#" id="expand-all-button" class="button"><i class="icon-align-justify" title="Expand all"></i></a>
					<a href="#" id="print-button" class="button"><i class="icon-print" title="Print"></i></a>
				</div>
			</div>
		</div>
        
		<div class="ui-layout-center">
			
			
				<div id="sd-class-diagram">
					
					<svg height="550.50" width="244.00"><g transform=""><rect height="546" width="243" x="0.55" y="0.55" fill="#FFFFFF" stroke="#979797" stroke-width="1" /><text x="68.78" y="20.50" fill="" style="" text-anchor="" font-family="" font-size="11.00" onmouseover="" onmouseout=""><![CDATA[internal static class]]></text><a xlink:href="../type/Win32SafeNativeMethods.html" xmlns:xlink="xlink"><text x="32.32" y="40.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[Win32SafeNativeMethods]]></text></a><path d="M0.5,55.50L244.00,55.50" stroke="#979797" stroke-width="1" /><image width="16.00" height="16.00" x="15.00" y="68.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#CopyFile2" xmlns:xlink="xlink"><text x="40.00" y="80.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[CopyFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="93.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#CreateDirectory3" xmlns:xlink="xlink"><text x="40.00" y="105.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[CreateDirectory]]></text></a><image width="16.00" height="16.00" x="15.00" y="118.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#CreateFile3" xmlns:xlink="xlink"><text x="40.00" y="130.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[CreateFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="143.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#DeleteFile7" xmlns:xlink="xlink"><text x="40.00" y="155.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[DeleteFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="168.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#FindClose" xmlns:xlink="xlink"><text x="40.00" y="180.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[FindClose]]></text></a><image width="16.00" height="16.00" x="15.00" y="193.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#FindClose2" xmlns:xlink="xlink"><text x="40.00" y="205.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[FindClose]]></text></a><image width="16.00" height="16.00" x="15.00" y="218.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#FindFirstFile" xmlns:xlink="xlink"><text x="40.00" y="230.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[FindFirstFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="243.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#FindNextFile" xmlns:xlink="xlink"><text x="40.00" y="255.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[FindNextFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="268.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.SafeNative.Win32SafeNativeMethods.GetDiskFreeSpaceEx(System.String, System.UInt64&amp;, System.UInt64&amp;, System.UInt64&amp;).html" xmlns:xlink="xlink"><text x="40.00" y="280.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[GetDiskFreeSpaceEx]]></text></a><image width="16.00" height="16.00" x="15.00" y="293.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#GetFileAttributes" xmlns:xlink="xlink"><text x="40.00" y="305.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[GetFileAttributes]]></text></a><image width="16.00" height="16.00" x="15.00" y="318.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.SafeNative.Win32SafeNativeMethods.GetFileSizeEx(System.Runtime.InteropServices.SafeHandle, System.Int64&amp;).html" xmlns:xlink="xlink"><text x="40.00" y="330.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[GetFileSizeEx]]></text></a><image width="16.00" height="16.00" x="15.00" y="343.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#LocalFree" xmlns:xlink="xlink"><text x="40.00" y="355.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[LocalFree]]></text></a><image width="16.00" height="16.00" x="15.00" y="368.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#MoveFile2" xmlns:xlink="xlink"><text x="40.00" y="380.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[MoveFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="393.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#RemoveDirectory" xmlns:xlink="xlink"><text x="40.00" y="405.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[RemoveDirectory]]></text></a><image width="16.00" height="16.00" x="15.00" y="418.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.SafeNative.Win32SafeNativeMethods.SetAllFileTimes(SchwabenCode.QuickIO.Win32API.Win32FindData, System.Int64&amp;, System.Int64&amp;, System.Int64&amp;).html" xmlns:xlink="xlink"><text x="40.00" y="430.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetAllFileTimes]]></text></a><image width="16.00" height="16.00" x="15.00" y="443.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.SafeNative.Win32SafeNativeMethods.SetCreationFileTime(SchwabenCode.QuickIO.Win32API.Win32FindData, System.Int64&amp;, System.IntPtr, System.IntPtr).html" xmlns:xlink="xlink"><text x="40.00" y="455.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetCreationFileTime]]></text></a><image width="16.00" height="16.00" x="15.00" y="468.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods.html#SetFileAttributes" xmlns:xlink="xlink"><text x="40.00" y="480.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetFileAttributes]]></text></a><image width="16.00" height="16.00" x="15.00" y="493.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.SafeNative.Win32SafeNativeMethods.SetLastAccessFileTime(SchwabenCode.QuickIO.Win32API.Win32FindData, System.IntPtr, System.Int64&amp;, System.IntPtr).html" xmlns:xlink="xlink"><text x="40.00" y="505.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetLastAccessFileTime]]></text></a><image width="16.00" height="16.00" x="15.00" y="518.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.SafeNative.Win32SafeNativeMethods.SetLastWriteFileTime(SchwabenCode.QuickIO.Win32API.Win32FindData, System.IntPtr, System.IntPtr, System.Int64&amp;).html" xmlns:xlink="xlink"><text x="40.00" y="530.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetLastWriteFileTime]]></text></a></g></svg>
				</div>
			

			<div class="right-margin">
				<h3 class="box-title first-heading">Syntax</h3>					
				<div class="syntax-box">
					<pre class="wrap-pre"><code>internal static class Win32SafeNativeMethods : object</code></pre>
				</div>

				
					<h3 class="box-title">Basetype</h3>
					<div class="list-box">
						<ul>
						
								<li>System.object</a></li>
							
						
						</ul>
					</div>
				

				
        
				

					
						<h3 class="box-title">Summary</h3>
						<div class="doc-box markdown">
							<p>Native Methods - take a look on www.pinvoke.net</p>

						</div>
					

					

					

					

					

					

					

					

				

				

				

				

				

				
					<h3 class="box-title">Methods</h3>
					
						












 



<div id="CopyFile2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>CopyFile(String fullNameSource, String fullNameTarget, Boolean failOnExists)</p></a>
		
			
				<div class="summary markdown">
					<p>Copies an existing file to a new file.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean CopyFile(String fullNameSource, String fullNameTarget, Boolean failOnExists)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">fullNameSource</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							<p>The name of an existing file.</p>

						</div>
					
						<p class="key">fullNameTarget</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							<p>The name of the new file.</p>

						</div>
					
						<p class="key">failOnExists</p>
						
						
									
									<small>Boolean</small>

														
						
						<div class="inline">
							<p>If this parameter is TRUE and the new file specified by lpNewFileName already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="CreateDirectory3" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>CreateDirectory(String fullName, IntPtr securityAttributes)</p></a>
		
			
				<div class="summary markdown">
					<p>Creates a new directory. If the underlying file system supports security on files and directories, the function applies a specified security descriptor to the new directory.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean CreateDirectory(String fullName, IntPtr securityAttributes)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">fullName</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							<p>The path of the directory to be created.</p>

						</div>
					
						<p class="key">securityAttributes</p>
						
						
									
									<small>IntPtr</small>

														
						
						<div class="inline">
							
						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError. Possible errors include the following.</p>

				</div>
			

			

			
				<p class="member-box-title">Remarks</p>
				<div class="member-doc-box markdown">
					<p>http://msdn.microsoft.com/en-us/library/windows/desktop/aa363855(v=vs.85).aspx</p>

				</div>
			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="CreateFile3" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>CreateFile(String fullName, FileAccess dwDesiredAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, FileAttributes dwFlagsAndAttributes, IntPtr hTemplateFile)</p></a>
		
			
				<div class="summary markdown">
					<p>Creates or opens a file or I/O device. The most commonly used I/O devices are as follows: file, file stream, directory, physical disk, volume, console buffer, tape drive, communications resource, mailslot, and pipe. The function returns a handle that can be used to access the file or device for various types of I/O depending on the file or device and the flags and attributes specified.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static SafeFileHandle CreateFile(String fullName, FileAccess dwDesiredAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, FileAttributes dwFlagsAndAttributes, IntPtr hTemplateFile)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">fullName</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							<p>The name of the file or device to be created or opened.</p>

						</div>
					
						<p class="key">dwDesiredAccess</p>
						
						
									
									<small>FileAccess</small>

														
						
						<div class="inline">
							<p>The requested access to the file or device, which can be summarized as read, write, both or neither zero).</p>

						</div>
					
						<p class="key">dwShareMode</p>
						
						
									
									<small>FileShare</small>

														
						
						<div class="inline">
							<p>The requested sharing mode of the file or device, which can be read, write, both, delete, all of these, or none (refer to the following table).</p>

						</div>
					
						<p class="key">lpSecurityAttributes</p>
						
						
									
									<small>IntPtr</small>

														
						
						<div class="inline">
							<p>A pointer to a SECURITY_ATTRIBUTES structure that contains two separate but related data members: an optional security descriptor, and a Boolean value that determines whether the returned handle can be inherited by child processes. This parameter can be NULL.</p>

						</div>
					
						<p class="key">dwCreationDisposition</p>
						
						
									
									<small>FileMode</small>

														
						
						<div class="inline">
							<p>An action to take on a file or device that exists or does not exist.</p>

						</div>
					
						<p class="key">dwFlagsAndAttributes</p>
						
						
									
									<small>FileAttributes</small>

														
						
						<div class="inline">
							<p>The file or device attributes and flags, FILE<em>ATTRIBUTE</em>NORMAL being the most common default value for files.</p>

						</div>
					
						<p class="key">hTemplateFile</p>
						
						
									
									<small>IntPtr</small>

														
						
						<div class="inline">
							<p>A valid handle to a template file with the GENERIC_READ access right. The template file supplies file attributes and extended attributes for the file that is being created</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>SafeFileHandle</p>

				</div>
			

			

			
				<p class="member-box-title">Remarks</p>
				<div class="member-doc-box markdown">
					<p>http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx</p>

				</div>
			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="DeleteFile7" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>DeleteFile(String fullName)</p></a>
		
			
				<div class="summary markdown">
					<p>Removes a file.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean DeleteFile(String fullName)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">fullName</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							
						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>Returns true on success, false on error Win32Exception</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="FindClose" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>FindClose(Win32FindData win32FindData)</p></a>
		
			
				<div class="summary markdown">
					<p>Closes a file search handle opened by the FindFirstFile, FindFirstFileEx, FindFirstFileNameW, FindFirstFileNameTransactedW, FindFirstFileTransacted, FindFirstStreamTransactedW, or FindFirstStreamW functions.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean FindClose(Win32FindData win32FindData)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">win32FindData</p>
						
						
									
									<small>Win32FindData</small>

														
						
						<div class="inline">
							<p>The file search handle.</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>If the function succeeds, the return value is nonzero.</p>

<p>If the function fails, the return value is zero. To get extended error information, call GetLastError.</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="FindClose2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>FindClose(SafeHandle findFile)</p></a>
		
			
				<div class="summary markdown">
					<p>Closes a file search handle opened by the FindFirstFile, FindFirstFileEx, FindFirstFileNameW, FindFirstFileNameTransactedW, FindFirstFileTransacted, FindFirstStreamTransactedW, or FindFirstStreamW functions.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean FindClose(SafeHandle findFile)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">findFile</p>
						
						
									
									<small>SafeHandle</small>

														
						
						<div class="inline">
							<p>The file search handle.</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>If the function succeeds, the return value is nonzero.</p>

<p>If the function fails, the return value is zero. To get extended error information, call GetLastError.</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="FindFirstFile" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>FindFirstFile(String fullName, Win32FindData win32FindData)</p></a>
		
			
				<div class="summary markdown">
					<p>Searches a directory for a file or subdirectory with a name that matches a specific name (or partial name if wildcards are used).</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Win32FileHandle FindFirstFile(String fullName, Win32FindData win32FindData)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">fullName</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							<p>The directory or path, and the file name, which can include wildcard characters, for example, an asterisk (*) or a question mark (?).</p>

						</div>
					
						<p class="key">win32FindData</p>
						
						
									
									<small>Win32FindData</small>

														
						
						<div class="inline">
							<p>A pointer to the Win32FileHandle structure that receives information about a found file or directory.</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>If the function succeeds, the return value is a search handle used in a subsequent call to FindNextFile or FindClose, and the lpFindFileData parameter contains information about the first file or directory found.</p>

<p>If the function fails or fails to locate files from the search string in the lpFileName parameter, the return value is INVALID<em>HANDLE</em>VALUE and the contents of lpFindFileData are indeterminate. To get extended error information, call the GetLastError function.</p>

<p>If the function fails because no matching files can be found, the GetLastError function returns ERROR<em>FILE</em>NOT_FOUND.</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="FindNextFile" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>FindNextFile(Win32FileHandle findFileHandle, Win32FindData findData)</p></a>
		
			
				<div class="summary markdown">
					<p>Continues a file search from a previous call to the FindFirstFile</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean FindNextFile(Win32FileHandle findFileHandle, Win32FindData findData)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">findFileHandle</p>
						
						
									
									<small>Win32FileHandle</small>

														
						
						<div class="inline">
							<p>The search handle returned by a previous call to the FindFirstFile or FindFirstFileEx function.</p>

						</div>
					
						<p class="key">findData</p>
						
						
									
									<small>Win32FindData</small>

														
						
						<div class="inline">
							<p>A pointer to the Win32FindData structure that receives information about the found file or subdirectory.</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>If the function succeeds, the return value is nonzero and the lpFindFileData parameter contains information about the next file or directory found.
If the function fails, the return value is zero and the contents of lpFindFileData are indeterminate. To get extended error information, call the GetLastError function.
If the function fails because no more matching files can be found, the GetLastError function returns ERROR<em>NO</em>MORE_FILES.</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="GetDiskFreeSpaceEx" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>GetDiskFreeSpaceEx(String fullName, UInt64& freeBytesAvailable, UInt64& totalNumberOfBytes, UInt64& totalNumberOfFreeBytes)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean GetDiskFreeSpaceEx(String fullName, UInt64&amp; freeBytesAvailable, UInt64&amp; totalNumberOfBytes, UInt64&amp; totalNumberOfFreeBytes)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
						












 



<div id="GetFileAttributes" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>GetFileAttributes(String fullName)</p></a>
		
			
				<div class="summary markdown">
					<p>Retrieves file system attributes for a specified file or directory.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static UInt32 GetFileAttributes(String fullName)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">fullName</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							<p>The name of the file or directory.</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>Returns bits of attributes or DOWRD-1 (0xffffffff => UInt32.Max on error)</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="GetFileSizeEx" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>GetFileSizeEx(SafeHandle hFile, Int64& lpFileSize)</p></a>
		
			
				<div class="summary markdown">
					<p>Retrieves the size of the specified file.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean GetFileSizeEx(SafeHandle hFile, Int64&amp; lpFileSize)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">hFile</p>
						
						
									
									<small>SafeHandle</small>

														
						
						<div class="inline">
							<p>A handle to the file. The handle must have been created with either the GENERIC<em>READ or GENERIC</em>WRITE access right or equivalent.</p>

						</div>
					
						<p class="key">lpFileSize</p>
						
						
									
									<small>Int64&</small>

														
						
						<div class="inline">
							<p>A pointer to a LARGE_INTEGER structure that receives the file size, in bytes.</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>If the function succeeds, the return value is nonzero.</p>

<p>If the function fails, the return value is zero. To get extended error information, call GetLastError.</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="LocalFree" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>LocalFree(IntPtr handle)</p></a>
		
			
				<div class="summary markdown">
					<p>Frees the specified local memory object and invalidates its handle.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static IntPtr LocalFree(IntPtr handle)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">handle</p>
						
						
									
									<small>IntPtr</small>

														
						
						<div class="inline">
							<p>A handle to the local memory object.</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>If the function succeeds, the return value is NULL.</p>

<p>If the function fails, the return value is equal to a handle to the local memory object. To get extended error information, call GetLastError.</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="MoveFile2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>MoveFile(String fullNameSource, String fullNameTarget)</p></a>
		
			
				<div class="summary markdown">
					<p>Moves an existing file or a directory, including its children.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean MoveFile(String fullNameSource, String fullNameTarget)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">fullNameSource</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							<p>The current name of the file or directory on the local computer.</p>

						</div>
					
						<p class="key">fullNameTarget</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							<p>The new name for the file or directory. The new name must not already exist. A new file may be on a different file system or drive. A new directory must be on the same drive.</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="RemoveDirectory" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>RemoveDirectory(String fullName)</p></a>
		
			
				<div class="summary markdown">
					<p>Removes a directory.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean RemoveDirectory(String fullName)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">fullName</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							
						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>Returns true on success, false on error Win32Exception</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="SetAllFileTimes8" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetAllFileTimes(Win32FindData hFile, Int64& lpCreationTime, Int64& lpLastAccessTime, Int64& lpLastWriteTime)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean SetAllFileTimes(Win32FindData hFile, Int64&amp; lpCreationTime, Int64&amp; lpLastAccessTime, Int64&amp; lpLastWriteTime)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
						












 



<div id="SetCreationFileTime" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetCreationFileTime(Win32FindData hFile, Int64& lpCreationTime, IntPtr lpLastAccessTime, IntPtr lpLastWriteTime)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean SetCreationFileTime(Win32FindData hFile, Int64&amp; lpCreationTime, IntPtr lpLastAccessTime, IntPtr lpLastWriteTime)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
						












 



<div id="SetFileAttributes" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetFileAttributes(String fullName, UInt32 fileAttributes)</p></a>
		
			
				<div class="summary markdown">
					<p>Set File Attributes</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean SetFileAttributes(String fullName, UInt32 fileAttributes)</code></pre>
		</div>		
        
		
		
			
				<p class="member-box-title">Parameters</p>
				<div class="member-doc-box markdown">
					
						<p class="key">fullName</p>
						
						
									
									<small>String</small>

														
						
						<div class="inline">
							<p>Path to the entry</p>

						</div>
					
						<p class="key">fileAttributes</p>
						
						
									
									<small>UInt32</small>

														
						
						<div class="inline">
							<p>Attributes</p>

						</div>
					
				</div>
			

			

			
				<p class="member-box-title">Returns</p>
				<div class="member-doc-box">
					<p>Returns true on success, false on error Win32Exception</p>

				</div>
			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="SetLastAccessFileTime" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetLastAccessFileTime(Win32FindData hFile, IntPtr lpCreationTime, Int64& lpLastAccessTime, IntPtr lpLastWriteTime)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean SetLastAccessFileTime(Win32FindData hFile, IntPtr lpCreationTime, Int64&amp; lpLastAccessTime, IntPtr lpLastWriteTime)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
						












 



<div id="SetLastWriteFileTime" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetLastWriteFileTime(Win32FindData hFile, IntPtr lpCreationTime, IntPtr lpLastAccessTime, Int64& lpLastWriteTime)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean SetLastWriteFileTime(Win32FindData hFile, IntPtr lpCreationTime, IntPtr lpLastAccessTime, Int64&amp; lpLastWriteTime)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
				

				
			</div>
		</div>

    </body>
</html>

